/*
 * @Author: 刘岩 15136056318@163.com
 * @Date: 2023-08-14 16:12:54
 * @LastEditors: 刘岩 15136056318@163.com
 * @LastEditTime: 2023-09-07 23:42:16
 * @FilePath: /template3-vite-pc-h5_ts/src/utils/check.ts
 * @Description: 类型约束
 */

// 请求
export interface IFetchParams {
  url: string
  method: 'GET' | 'POST' | 'get' | 'post'
  params?: object
  data?: object
  headers?: {
    [property: string]: any
  }
  token?: boolean
  [property: string]: any
}
// 路由
export interface IRoute {
  path: string
  name?: string
  component?: Function
  meta?: {
    title?: string
    [propsName: string]: any
  }
  [propsName: string]: any
}
// 全局配置
export interface IConfig {
  APP: {
    title: string // 业务中心侧边菜单标题
    isLogin: boolean // 是否做拦截登录
    isH5: boolean // 是否移动端
    isVConsole: boolean //是否开启线上调试工具
    [propsName: string]: any
  }
  HTTP: {
    cross_prefix: string[] // 跨域前缀数组
    [propsName: string]: any
  }
}
